#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/11/10 21:31
# @Author  : lizhen
# @Site    : 
# @File    : cExt.py
# @Software: PyCharm


class ExtDemo:
    def run(self):
        """
        ed = ExtDemo()
        ed.run()
        """
        sample = __import__('ext.sample', fromlist=['sample'])
        print(sample.gcd(35, 42))
        print(sample.gcd(35, 42))
        print(sample.in_mandel(0, 0, 500))
        print(sample.in_mandel(2.0, 1.0, 500))
        print(sample.divide(42, 8))
        print(sample.avg([1, 2, 3]))
        p1 = sample.Point(1, 2)
        p2 = sample.Point(4, 5)
        print(sample.distance(p1, p2))


if __name__ == '__main__':
    ed = ExtDemo()
    ed.run()
